#include <iostream>
#include <cstdio>
typedef long long ll;
using namespace std;
ll max_prim(ll a, ll b) {
    if (a<b) swap(a,b);
    ll r=a%b;
    while(r!=0) {
        a=b;
        b=r;
        r=a%b;
    }
    return b;
}
int main() {
    ll n, m;
    cin>>m>>n;
    for (ll i=2; i<=n; i++) {
        ll tmp = max_prim(i,m);
    //    cout<<"tmp:"<<tmp<<endl;
        printf("%lld\n",i/tmp);
    }
    return 0;
}
